#!/bin/sh

#for sd fs mount
if [ ! -d /mnt/p1 ] ; then
       mkdir /mnt/p1
fi
if [ ! -d /mnt/p2 ] ; then
       mkdir /mnt/p2
fi
mount /dev/mmcblk0p1 /mnt/p1
mount /dev/mmcblk0p2 /mnt/p2

modprobe pwm-sun4i

#mount debugfs
mount -t debugfs none /sys/kernel/debug

#add sound driver
modprobe sun6i-dma
modprobe snd-soc-simple-card
modprobe sun8i-codec
modprobe sun4i-i2s
modprobe sun50i-codec-analog

#add adc keys
modprobe sun4i-lradc-keys

#add lcd driver
modprobe panel-simple
modprobe sun4i-drm
modprobe sun8i-mixer
modprobe sun4i-tcon
modprobe pwm_bl

#add wifi
modprobe r8723bs
wpa_supplicant -B -i wlan0 -c /etc/wifi.conf

#add bluetooth
modprobe btrtl
modprobe hci_uart
